﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dao
{
    public interface CommandDao: BaseDao<string, Command>
    {
        /// <summary>
        /// 通过命令名称查询命令
        /// </summary>
        /// <param name="rootCmd"></param>
        /// <returns></returns>
        List<Command> SearchByCommandName(string rootCmd);
        /// <summary>
        /// 通过命令名称和视图查询命令
        /// </summary>
        /// <param name="rootCmd"></param>
        /// <returns></returns>
        List<Command> SearchByCommandNameAndView(string rootCmd, string view);
    }
}
